package com.demo.designmode.adapter.classadapter;

/**
 * @Author: jxm
 * @Description: 定义适配器类（SD兼容TF）
 * @Date: 2023-12-13 9:43
 * @Version: 1.0
 */
public class SDAdapterTF extends TFCardImpl implements SDCard{

    @Override
    public String readSD() {
        System.out.println("adapter read tf card ");
        return readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        writeTF(msg);
    }
}
